<?php


namespace app\admin\model;


use think\Model;

/**
 * Class HtnsOrderCartInfo
 * @package app\admin\model
 * @desc 海淘女神-商品表
 */
class HtnsProduct extends Model
{
    protected $connection = 'htns';
    protected $table = 'eb_store_product';

    // 货仓列表
    public $hcName = [
        1 => '吉客云',
        2 => '菜鸟国际仓',
    ];
    // 获取有效用户数
    public function getProductNum()
    {
        $where['is_show'] = 1;
        $where['is_del'] = 0;
        $res = self::where($where)->count();
        return $res;
    }
}